package cn.gaotu.user.mapper;

import cn.gaotu.user.domain.Logininfo;
import cn.gaotu.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author FlyPig
 * @since 2022-08-24
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {
    Logininfo findByUserAndPhone(@Param("username") String username, @Param("type") Integer type);

    /**
     * 通过Wxuser里面的logininfoid去查找logininfo
     * @param id
     * @return
     */
    Logininfo findByWxUserId(Long id);
}
